You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecInt Class > TMtxVecInt Methods > ThreshTop Method > TMtxVecInt.ThreshTop Method ([In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecInt.ThreshTop Method ([In] int)

Threshold top operation.

Syntax
C#
Visual Basic
public TMtxVecInt ThreshTop([In] int Value);

Perform threshold operation on all calling object values. The Value parameter is an upper bound for threshold operation. All values bigger than Value will be replaced with Value.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVecInt a; MtxVecInt.CreateIt(out a); try { a.SetIt(new int[] {2, 0, 3, 4}); a.ThreshTop(1); // a = [1, 0, 1, 1] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!